package com.yanchi.builder;

// 具体的建造者：厨师
public class Cook extends Builder{

    private Product product;

    public Cook() {
         product = new Product();
    }

    @Override
    Builder builder1(String msg) {
        product.setBuilderA(msg);
        return this;
    }

    @Override
    Builder builder2(String msg) {
        product.setBuilderB(msg);
        return this;
    }

    @Override
    Builder builder3(String msg) {
        product.setBuilderC(msg);
        return this;
    }

    @Override
    Builder builder4(String msg) {
        product.setBuilderD(msg);
        return this;
    }

    @Override
    Product getProduct() {
        return product;
    }
}
